import Vue from 'vue'
import App from './App.vue'
import axios from '../api/baseAxios'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import video from 'video.js'
import 'video.js/dist/video-js.css'
import 'videojs-contrib-hls'

Vue.prototype.$video = video

axios.interceptors.response.use(function (response) {
  return response.data
})

Vue.prototype.$axios = axios

Vue.config.productionTip = false

Vue.use(ElementUI, { size: 'small', zIndex: 3000 })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
